﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartProduction.Domain.客户管理
{
    /// <summary>
    /// 销售订单表
    /// </summary>
    public class SalesOrder
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        public int SalesOrderId { get; set; }
        /// <summary>
        /// 订单编码
        /// </summary>
        [StringLength(50)]
        public string? SalesOrderNumer { get; set; }
        /// <summary>
        /// 订单名称
        /// </summary>
        [StringLength(50)]
        public string? ClientInfoNumer { get; set; }
        /// <summary>
        /// 订单类型
        /// </summary>
        [StringLength(50)]
        public string? SalesOrderType { get; set; }
        /// <summary>
        /// 所属项目
        /// </summary>
        [StringLength(50)]
        public string? AltEnter { get; set; }
        /// <summary>
        /// 订单备注
        /// </summary>
        [StringLength(200)]
        public string? SalesOrderRemark { get; set; }
        /// <summary>
        /// 客户
        /// </summary>
        [StringLength(50)]
        public string ClientInfoNo { get; set; }
        /// <summary>
        /// 订单金额
        /// </summary>
        public string? SalesOrderPrice { get; set; }
        /// <summary>
        /// 币种
        /// </summary>
        [StringLength(50)]
        public string? Currency { get; set; }
        /// <summary>
        /// 所在国家
        /// </summary>
        [StringLength(50)]
        public string CountryName { get; set; }
        /// <summary>
        /// 预收款金额
        /// </summary>
        public string? Advances { get; set; }
        /// <summary>
        /// 订单开始时间
        /// </summary>
        public DateTime OrderCreatTime { get; set; }
        /// <summary>
        /// 订单结束时间
        /// </summary>
        public DateTime? OrderOverTime { get; set; }
        /// <summary>
        /// 签订时间
        /// </summary>
        public DateTime SigningTime { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool OrderStatus { get; set; }
        /// <summary>
        /// 计税类型
        /// </summary>
        public string? TaxType { get; set; }
        /// <summary>
        /// 税率
        /// </summary>
        public string? Taxrate { get; set; }
        /// <summary>
        /// 开票金额(含税)
        /// </summary>
        public string? InvoicePrice { get; set; }
        /// <summary>
        /// 已收款金额(含税)
        /// </summary>
        public string? AmountPrice { get; set; }
        /// <summary>
        /// 销售员
        /// </summary>
        public string? SalesMan { get; set; }
        /// <summary>
        /// 销售部门
        /// </summary>
        public string? SalesDepart { get; set; }
        /// <summary>
        /// 删除标记
        /// </summary>
        public bool IsDelete { get; set; }
    }
}
